package com.sh.data.engine.application.model.dto.integration;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema
public class FlinkTableFieldResponse {

    @Schema(description = "字段名")
    private String fieldName;

    @Schema(description = "字段类型")
    private String fieldType;

    @Schema(description = "字段描述")
    private String comment;

    /**
     * 是否是分区字段
     */
    @Schema(description = "是否分区字段")
    private boolean isPartition;

    /**
     * 字段是否是主键
     */
    @Schema(description = "是否主键")
    private boolean isPk;

    /**
     * 字段可否为空
     */
    @Schema(description = "字段可否为空 0-NO  1-YES")
    private boolean isNullable;

    /**
     * 是否是标签字段(InfluxDB使用)
     */
    @Schema(description = "是否是标签字段(InfluxDB使用)")
    private boolean isTag;
}
